//
//  NSString+ToJson.h
//  UIColor+Extention
//
//  Created by YiXuePxh on 16/2/2.
//  Copyright © 2016年 上海益学. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (ToJson)
//将json字符串 转化成Dictionary
+(NSDictionary* )dictionaryWithJsonString:(NSString* )jsonString;
//获取本地json文件 转化成Dictionary
+(NSDictionary* )dictionaryWithLocalJsonFile:(NSString* )fileName;
//将其他非json字符串类 转化成json字符串
//将Dictionary转化成json字符串
+(NSString *) jsonStringWithDictionary:(NSDictionary *)dictionary;
//将Array数组转化成json字符串
+(NSString *) jsonStringWithArray:(NSArray *)array;
//将String转化成json字符串
+(NSString *) jsonStringWithString:(NSString *) string;
//将object对象转化成json字符串
+(NSString *) jsonStringWithObject:(id) object;
@end
